package test00.lx05.test02;

import java.util.Scanner;
import java.util.function.Predicate;

/**
 * @author CSY
 * @date 2025 - 04 - 02
 */
public class MainTest02 {
    public static void main(String[] args) {
        String str = checkScore(60, (integer) -> integer >= 60);
        System.out.println(str);
    }

    public static String checkScore(int score,Predicate<Integer> predicate){
        return predicate.test(score) ? "合格" : "不合格";
    }
}
